package com.pcbly.web.components.utils.decorator;

import java.util.List;

import com.opensymphony.module.sitemesh.Decorator;
import com.opensymphony.module.sitemesh.mapper.DefaultDecorator;

@SuppressWarnings("unchecked")
public class ThemeDecorator extends DefaultDecorator {
	protected Decorator decorator;
	
	protected List themes;

	public ThemeDecorator(Decorator decorator, String page, List themes) {
		super(decorator.getName(), page, null);
		this.decorator = decorator;
		this.themes = themes;
	}

	public String getInitParameter(String paramName) {
		return decorator.getInitParameter(paramName);
	}

	public List getThemes() {
		return themes;
	}

}
